package guoanmaker.operator.business.model;


import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 
* @ClassName: OperatorContract 
* @Description: TODO(合同实体类) 
* @author (ZhangXinYu)  
* @date 2017年12月15日 下午5:12:02 
* @version V1.0
 */

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "t_operator_contract")
public class OperatorContract extends IdEntity{
	String name;	//合同名称
	String file;	//合同文件链接
	String img;		//合同图片
	Date date;		//上传日期
	String guide;
	
	@ManyToOne(cascade=CascadeType.REFRESH,optional=false)
	@JoinColumn(name = "type_id")
	OperatorContractType contractType;	//合同类型
}
